<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="exam/papers/bd_class">
    <input type="hidden" name="paper_id" value="{$paper_id}">
    <input type="hidden" name="ids" value="{$ids}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">发布时间:</label>
        <div class="col-xs-12 col-sm-8" style="width: 60%;">
            <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="start_time" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">结束时间:</label>
        <div class="col-xs-12 col-sm-8" style="width: 60%;">
            <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="end_time" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">答题次数:</label>
        <div class="col-xs-12 col-sm-8" style="width: 60%;">
            <input id="c-other_name" data-rule="required" class="form-control" name="num" value="1" oninput="if(value<1)value=1;if(value>2)value=2" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">作业名称:</label>
        <div class="col-xs-12 col-sm-8" style="width: 60%;">
            <input id="c-title" data-rule="required" class="form-control" name="title" value="" type="text">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed ">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
